#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <unordered_map>
#include <string>
using namespace std;

int main()
{
    string s1, s2;
    cin >> s1;
    cin >> s2;
    unordered_map<char, int> m;
    for (auto& a : s1)
    {
        ++m[a];
    }
    string flag = "Yes";
    for (auto& a : s2)
    {
        if (m[a] == 0)
        {
            flag = "No";
            break;
        }
        else
        {
            --m[a];
        }
    }
    cout << flag << endl;
    return 0;
}
